import 'dart:async';

import 'package:flutter/material.dart';

class LogingPage extends StatefulWidget {
  @override
  _LogingPageState createState() => _LogingPageState();
}

class _LogingPageState extends State<LogingPage> {

  @override
  void initState() {
    Timer(Duration(seconds: 1),(){
        Navigator.of(context).pushReplacementNamed("tabbar");
    });
    // TODO: implement initState
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Container(
      decoration: BoxDecoration(
          image: DecorationImage(image: AssetImage("lib/assets/loding.jpg"),fit: BoxFit.fill)),
    );
  }
}
